const page = {
  root_dir: '../',
  page_dir: 'page',
  pages: [
    { path: '/index', name: 'index', title: '首页' },
    { path: '/about', name: 'about', title: '关于我们' },
    // { path: '/about', name: 'about', title: '党建文化' },
    { path: '/news', name: 'news', title: '新闻' },
    // { path: '/news', name: 'news_page', title: '新闻详情' },
    { path: '/solution', name: 'solution', title: '解决方案' },
    // { path: '/solution', name: 'solution_page', title: '解决方案详情' },
    { path: '/case', name: 'case', title: '经典案例' },
    // { path: '/case', name: 'case_page', title: '经典案例详情' },
    // { path: '/recruitment', name: 'recruitment', title: '招聘' },
    { path: '/contact', name: 'contact', title: '联系我们' },
  ],
  widget:[
    {path:'/header',name:'header'},
    {path:'/footer',name:'footer'},
    {path:'/swiper',name:'swiper'},
  ]
}
const {pages}=page
let nav=obj=>obj.reduce((c,v)=>{
c[v.title]=`..${v.path}/${v.name}.html`
return c
},{})
console.log(nav(pages));